import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

import CoreuiVue from '@coreui/vue'
import CIcon from '@coreui/icons-vue'
import { iconsSet as icons } from '@/assets/icons'
import DocsExample from '@/components/DocsExample'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import locale from 'element-plus/es/locale/lang/zh-cn';
// global.js
// import { gifler } from 'gifler';
// app.config.gloapp.config.globalProperties.$gifler = gifler;
const app = createApp(App)
app.use(createPinia())
app.use(router)
app.use(CoreuiVue)
app.use(ElementPlus, { locale })
app.provide('icons', icons)
app.component('CIcon', CIcon)
app.component('DocsExample', DocsExample)

app.mount('#app')
